//
//  ClientComboBoxController.h
//  ProcessTimeBudget
//
//  Created by isempty.chiu on 2010/9/8.
//  Copyright 2010 LifeMotion. All rights reserved.
//

#import <Cocoa/Cocoa.h>
@class EventItem;

@interface EventController : NSObject {
	IBOutlet NSComboBox*	eventComboBox;
	IBOutlet NSTextField* eventRunningLabel;
	IBOutlet NSButton* eventAdd;
	IBOutlet NSButton* eventDel;
	
	NSMutableArray *eventList_;
}

+(EventController*)sharedController;
-(void)initEventList;

@property (nonatomic, retain) NSComboBox * eventComboBox;
@property (nonatomic, retain) NSTextField * eventRunningLabel;
@property (nonatomic, retain) NSButton * eventAdd;
@property (nonatomic, retain) NSButton * eventDel;
@property (readonly) EventItem * CurrentEvent;
@property (readonly) NSMutableArray* EventList;

//Member

//Control
- (void)comboBoxSelectionDidChange:(NSNotification *)notification;

//Action
- (IBAction)addEventClickedAction:(id)sender;
- (IBAction)delEventClickedAction:(id)sender;
- (IBAction)resetAction:(id)sender;

//Notify

@end
